acegi {
    loadAcegi = true

    algorithm = "MD5"
    //use Base64 text ( true or false )
    encodeHashAsBase64 = false
    errorPage = "null"

    /** login user domain class name and fields */
    loginUserDomainClass = "${personDomain}"
    userName = "username"
    password = "passwd"
    enabled = "enabled"
    relationalAuthorities = "authorities"

    /**
    * Authority domain class authority field name
    * authorityFieldInList
    */
    authorityDomainClass = "${authorityDomain}"
    authorityField = "authority"

    /** use RequestMap from DomainClass */
    useRequestMapDomainClass = true
    /** Requestmap domain class (if useRequestMapDomainClass = true) */
    requestMapClass = "${requestmapDomain}"
    requestMapPathField = "url"
    requestMapConfigAttributeField = "configAttribute"

    /**
    * if useRequestMapDomainClass is false, set request map pattern in string
    * see example below
    */
    /*  requestMapString = """
    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
    PATTERN_TYPE_APACHE_ANT

    /login/**=IS_AUTHENTICATED_ANONYMOUSLY
    /admin/**=ROLE_USER
    /book/test/**=IS_AUTHENTICATED_FULLY
    /book/**=ROLE_SUPERVISOR
    /**=IS_AUTHENTICATED_ANONYMOUSLY
    """*/

    /**
    * To use email notification for user registration, set the following userMail to
    * true and config your mail settings.Note you also need to implement the script
    * grails generate-registration.
    */
    useMail = false
    mailHost = "localhost"
    mailUsername = "user@localhost"
    mailPassword = "sungod"
    mailProtocol = "smtp"
    mailFrom = "user@localhost"

    /** AJAX request header */
    ajaxHeader = "X-Requested-With"

    /** default user's role for user registration */
    defaultRole = "ROLE_USER"
}